package homework;

public class Array1 {
    public static void main(String[] args) {
        int[] a = {10,62,8,58,7,94,56,89,78};
        printArrayData(a);
        int max = MaxArray.getMaxOfArray(a);
        System.out.println("max = " + max);
        System.out.println("-------------------------------");
        int[] b =new int[10];
        for(int i = 0;i<b.length;i++){
            b[i]= (int) (Math.random()*100+1);
        }
        printArrayData(b);
        int max1 =MaxArray.getMaxOfArray(b);
        System.out.println("max1 = " + max1);
    }
    public static void printArrayData(int[] arr){
        for(int i =0;i<arr.length;i++){
            System.out.println(arr[i]);
        }
    }
}